package Lexical;

public class Integer extends Token 
{
	public final int value;		
	
	/**
	 * Constructor of a Token of the type Integer.
	 * @param value a integer value for the Integer Token.
	 */
	public Integer (int value) 
	{ 
		super (Tag.NUMBER); 
		this.value = value; 
	}
	
	/**
	 * Constructor of a Token of the type Integer.
	 * @param value a integer value for the Integer Token.
	 * @param line 	the line of the code where the Token was found.
	 */
	public Integer (int value, int line) 
	{ 
		super (Tag.NUMBER, line); 
		this.value = value; 
	}
	
	public String toString()
	{
		return String.valueOf(value);
	}

}
